package com.joysuch.wwyt.mh.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.joysuch.wwyt.common.entity.UserDataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * <p>
 * 
 * </p>
 *
 * @author heqifeng
 * @since 2021-07-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_screen_map_config")
@ApiModel(value="ScreenMapConfig对象", description="")
public class ScreenMapConfig extends UserDataEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "false：关闭、true：开启")
    private Boolean depthDetection;

    @ApiModelProperty(value = "贴合模型   false：关闭、true：开启")
    private Boolean effectModel;

    @ApiModelProperty(value = "报警声音")
    private String alarmSound;

    @ApiModelProperty(value = "地图倾斜角度")
    private Integer tiltAngle;

    @ApiModelProperty(value = "旋转角度")
    private Integer rotationAngle;

    @ApiModelProperty(value = "放大比例")
    private Integer enlargeScale;

    @ApiModelProperty(value = "人员名称字体大小  范围：14-20")
    @Max(value = 20,message = "人员名字字体过大")
    @Min(value = 14, message = "人员名字字体过小")
    private Integer peopleNameFontSize;

    @ApiModelProperty(value = "背景色（色值）")
    private String backgroundColor;

    @ApiModelProperty(value = "显示室内图标 0：关闭,1：开启")
    private int showIconIndoor;
}
